<?php

/**

 * @package WordPress

 * @subpackage APrints_Theme

 */

?>

<?php get_header();?>

	<div id="content" >



<!-- This sets the $curauth variable -->



    <?php

    if(isset($_GET['author_name'])) :

        $curauth = get_userdatabylogin($author_name);

    else :

        $curauth = get_userdata(intval($author));

    endif;

    ?>



    <h2>About: <?php echo $curauth->nickname; ?></h2>

    <ul>

        <li>Website: <a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></li>

        <li>Profile: <?php echo $curauth->user_description; ?></li>

    </ul>



    <h2>Posts by <?php echo $curauth->nickname; ?></h2>



    <ul>

<!-- The Loop -->



    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

              <li class="opener" id="opener_<?php the_ID(); ?>">

                <a title="Click to read more"><?php the_author() ?> 
                (<?php the_time('F jS, Y') ?>).</a>

                <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>. 

                <em><?php the_category(', ') ?></em>.

				<div class="excerpt" id="excerpt_<?php the_ID(); ?>"><?php the_excerpt() ?></div>
            </li>



    <?php endwhile; else: ?>

        <p><?php _e('No posts by this author.'); ?></p>



    <?php endif; ?>



<!-- End Loop -->



    </ul>

</div>



<?php get_footer();?>